
def updateWandCompare(newWFile, oldW):
    """
    ex : 
    newW = updateWandCompare('world.pk', levinCommon.wineWorld)
    """
    newW = WorldArea("newW", systemFile = newWFile, userFile=oldW._user_content)
    def confirmUDtransferToSD(self,ua,sa):
        print ' Diff user = ', ua.name, ua
        print ' Diff system = ', sa.name, sa
        return True
    from levin.world.wineAttributes import SubAreaAtt
    
    SubAreaAtt.confirmUDtransferToSD = confirmUDtransferToSD
    print 
    newW._updateUDataFromSData()
    return newW

def printUserWines(a):
    print '----', a.name , '---------'
    if a._user_subAreas is None:
        return
    for sa in a._user_subAreas.values():
        if sa.wines != []:
            print "  !!!! ",sa.name, ":", sa.wines 
